import request from "@/utils/request";

// 获得门店MAC分页
export function getStoreMacPage(data) {
  return request({
    url: "/store/mac/page",
    method: "post",
    data: data,
  });
}

// 禁用/取消禁用
export function CancelMacBtn(data) {
  return request({
    url: "/store/mac/cancel",
    method: "post",
    data: data,
  });
}

// 更新门店MAC
export function UpdateMacBtn(data) {
  return request({
    url: "/store/mac/update",
    method: "PUT",
    data: data,
  });
}

// 审批
export function ApproveMacBtn(data) {
  return request({
    url: "/store/mac/approve",
    method: "post",
    data: data,
  });
}

// 更改MAC限制登陆
export function EditMacStatus(query) {
    return request({
      url: "/store/store/edit/macStatus",
      method: "get",
      params: query,
    });
  }